package com.hust.hui.quick.web;

import com.hust.hui.quick.service.repository.UserRepository;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication(scanBasePackages = "com.hust.hui.quick")
@MapperScan(basePackages = "com.hust.hui.quick.service.dao")
public class Application {

	@Autowired
	private UserRepository userRepository;

	public static void main(String[] args) {
		SpringApplication.run(Application.class, args);
	}


//
//	@Bean
//	public MapperScannerConfigurer getBeanMSC(){
//		MapperScannerConfigurer msc = new MapperScannerConfigurer();
//		msc.setBasePackage("com.hust.hui.quick.service.dao");
//		msc.setAnnotationClass(Mapper.class);
//		return msc;
//	}
}
